<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
<!--
#title {
	background-image: url(images/bg-header.jpg);
	background-repeat: repeat;
	height: 50px;
	width: 1000px;
	margin-right: auto;
	margin-left: auto;
}
#menu {
	font-size: 25px;
	line-height: 30px;
	padding-top: 10px;
	padding-left: 5px;
}
#menu a:link, a:visited {
	color: #999999;
	text-decoration: none;
}
#menu a:hover, a:active {
	color: #B9DBDB;
	text-decoration: blink;
}
#left a:link, a:visited {
	color: #999999;
	text-decoration: none;
}
#left a:hover, a:active {
	color: #000000;
}
#container {
	width: 1000px;
	margin-right: auto;
	margin-left: auto;
	background-color: #FFFFFF;
}
#featurebk {
	background-image: url(images/title1.jpg);
	background-repeat: no-repeat;
	height: 200px;
}
#left {
	float: left;
	width: 400px;
}
#right {
	float: left;
	width: 570px;
	margin-left: 10px;
	border-left-width: 1px;
	border-left-style: dotted;
	border-left-color: #999999;
	margin-top: 5px;
}
#clear {
	clear: both;
}
#bottom {
	background-image: url(images/bg-footer2.png);
	background-repeat: no-repeat;
	height: 102px;
}
#copyright {
	color: #505050;
	font-size: 15px;
	line-height: 30px;
	margin-left: 250px;
	margin-bottom: 30px;
	padding-top: 40px;
}
#letftitle {
	font-size: 25px;
	line-height: 30px;
	color: #333333;
	border-bottom-width: 1px;
	border-bottom-style: double;
	border-bottom-color: #999999;
	margin-top: 5px;
	padding-left: 5px;
}
#ldetail {
	border-top-width: 1px;
	border-bottom-width: 1px;
	border-top-style: dotted;
	border-bottom-style: dotted;
	border-top-color: #999999;
	border-bottom-color: #999999;
	font-size: 15px;
	line-height: 25px;
	color: #666666;
	padding-left: 5px;
}
#ltable1 {
	font-size: 18px;
	line-height: 28px;
	color: #333333;
}
#lrcomend {
	font-size: 25px;
	line-height: 30px;
	color: #666666;
	margin-top: 5px;
	padding-left: 5px;
}
#lrank {
	font-size: 16px;
	line-height: 25px;
	color: #666666;
}
#lnews {
	font-size: 16px;
	line-height: 30px;
	color: #666666;
}
#wai {
	background-repeat: repeat;
	background-image: url(images/clouds.jpg);
}
#news1title {
	font-size: 25px;
	line-height: 30px;
	color: #333333;
	margin-top: 10px;
	margin-left: 5px;
	border-bottom-width: 1px;
	border-bottom-style: solid;
	border-bottom-color: #999999;
}
.STYLE1 {
	font-size: 14px;
	color: #666666;
}
#right #rcon {
	font-size: 14px;
	line-height: 25px;
	margin-left: 10px;
}
.STYLE2 {color: #666666}
#rtitle {
	font-size: 15px;
	line-height: 25px;
	color: #666666;
	border-bottom-width: 1px;
	border-bottom-style: dashed;
	border-bottom-color: #333333;
}
.STYLE3 {
	font-size: 24px;
	color: #333333;
}
#comment {
	font-size: 18px;
	line-height: 30px;
	margin-left: 10px;
}
-->
</style>
</head>

<body>
<div id="wai">
  <div id="container">
    <div id="title">
      <div id="menu"><table width="640" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="74"><a href="<?php echo $this->createUrl("site/index");?>">首页</a></td>
    <td width="85"><a href="<?php echo $this->createUrl("article/index");?>" >博文</a></td>
    <td width="119"><a href="<?php echo $this->createUrl("article/create");?>">发博文</a></td>
    <td width="115"><a href="<?php echo $this->createUrl("board/index");?>">留言板</a></td>
    <td width="93"><a href="<?php echo $this->createUrl("user/view",array("id"=>Yii::app()->user->id));?>">关于我</a></td>
    <td width="154">&nbsp;</td>
    </tr>
</table>
    </div>
  </div>
  <div id="featurebk"></div>
   <div id="left">
     <div id="letftitle">关于我</div>
     <table width="350" border="0" cellpadding="0" cellspacing="0" id="ltable1">
  <tr>
    <td width="69">&nbsp;</td>
    <td width="180"><img src="images/12.png" width="180" height="177" /></td>
    <td width="101">&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td align="center">云裳花开</td>
    <td>&nbsp;</td>
  </tr>
 </table>

     <div id="ldetail">91年人，喜欢动漫，散文，哲学小说，没事爱四处逛<br />
     邮箱：1525781887@qq.com</div>
     <div id="lrcomend">文章分类-----------------------------------</div>
     <div id="lrank">
       <ul>
       <li><a href="#">诗歌</a></li>
       <li><a href="#"> 随笔</a></li>
       <li> <a href="#">电影评论</a></li>
       <li> <a href="#">科技 </a></li>
       <li><a href="#">其它 </a></li>
     </ul></div>
     
     <div id="lrcomend">推荐文章-----------------------------------</div>
     
     <div id="lnews">
       <ul>
         <li><a href="new1">微信开放WiFi接口，醉翁之意在乎O2O还是大数据</a></li>
         <li><a href="#">Go语言诞生5周年！10大Go语言开源项目</a></li>
         <li><a href="#">神器 VisuAlgo：通过动画学习算法和数据结构</a></li>
         <li><a href="#">如何设计优雅的移动游戏</a></li>
         <li><a href="#">云计算华山论剑：云如何改变企业</a></li>
       </ul>
      </div>
   </div>
    
   
   
   
   <div id="right">
     <div id="rtitle">首页&gt;留言板</div></br>
          
    &nbsp;&nbsp;&nbsp;<td width="115"><a href="<?php echo $this->createUrl("board/create");?>">写留言</a></td></br>
   <?php $cnum = 0;?>

	   <?php foreach($allComments as $comment) {?>
<div style="border:solid 1px;font-size:100%;margin:2%;padding:2%;">
<?php 
$cnum++;
if($comment['type'] == 0)
{
	echo "游客：";
}
else
{
	echo "用户 ".$comment['username']."：";
}
?>
<br/>
<a href="<?php echo $this->createUrl("board/view",array('id'=>$comment['id']));?>"><?php echo $comment['content'];?></a>
<br/>
<?php 
//echo $comment['id'];
echo "发表时间：";
echo date("Y-m-d H:i:s", $comment['createTime']);?>

&nbsp;&nbsp;&nbsp;&nbsp;<a href="<?php echo $this->createUrl("board/delete",array('id'=>$comment['id']));?>">删除留言</a>
</div>
<?php } ?>
</div>
   
   <div id="clear"></div>
   
   <div id="bottom">
     <div id="copyright">Copyright © 2014 SimpleBlog 华师大计算机科学与技术 版权所有</div>
   </div>
  </div>
</div>
</body>
</html>